package com.company.cloud.uba.utils;

import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.StrUtil;

public class UbaIdUtils {

    /**分享码*/
    public static String getShareCode(){
        return StrUtil.format("SC{}",IdUtil.getSnowflake(10,10).nextIdStr());
    }

    /**用户注册日志Id*/
    public static String getUserRegisterLogId(){
        return StrUtil.format("URL{}", IdUtil.getSnowflake(1,5).nextIdStr());
    }

    /**用户登出日志Id*/
    public static String getUserLogoutLogId(){
        return StrUtil.format("UOL{}",IdUtil.getSnowflake(1,6).nextIdStr());
    }

    /**用户登录日志Id*/
    public static String getUserLoginLogId(){
        return StrUtil.format("UIL{}",IdUtil.getSnowflake(1,7).nextIdStr());
    }

    /**用户浏览日志Id*/
    public static String getUserBrowseLogId(){
        return StrUtil.format("UBL{}",IdUtil.getSnowflake(1,8).nextIdStr());

    }
}
